$(document).ready(function(){ 
	$('#fromDate').datepicker();
	$('#toDate').datepicker();
   $('#fromDate').datepicker("option", "dateFormat", "dd-mm-yy");
   $('#toDate').datepicker("option", "dateFormat", "dd-mm-yy");
   $('#fromDate').datepicker("setDate", $('#fromDate').attr('value'));
   $('#toDate').datepicker("setDate", $('#toDate').attr('value'));
   
   	$('#exportPdf').click(function() {
   		var url = $(this).attr("href")+"?hideHeader=Y&fromDate="+ $('#fromDate').val() + "&toDate=" + $('#toDate').val();
   		window.open(url,'_blank');
   		return false;
   	});
   	
   	$('#exportExcel').click(function() {
   		var url = $(this).attr("href")+"?fromDate="+ $('#fromDate').val() + "&toDate=" + $('#toDate').val();
   		window.open(url,'_blank');
   		return false;
   	});

});